package cn.iocoder.yudao.module.reclaim.controller.admin.productcheckres.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.reclaim.controller.admin.productcheckdeductitem.vo.ReclaimCheckDeductItemRespVO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 回收核验结果 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ReclaimCheckResRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "709")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7577")
    @ExcelProperty("订单id")
    private String orderNo;

    @Schema(description = "客户输入重量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户输入重量")
    private Integer weightMember;

    @Schema(description = "核验前重量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("核验前重量")
    private Integer weightCheckBefore;

    @Schema(description = "核验后重量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("核验后重量")
    private Integer weightCheckAfter;

    @Schema(description = "原料类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "原料类型", converter = DictConvert.class)
    @DictFormat("mall_product_material_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer materialType;

    @Schema(description = "纯度百分比", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("纯度百分比")
    private Integer purePercent;

    @Schema(description = "寄出前图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("寄出前图片")
    private List<String> undeliveryPic;

    @Schema(description = "核验前图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("核验前图片")
    private List<String> uncheckPic;

    @Schema(description = "核验后图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("核验后图片")
    private List<String> checkPic;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "是否扣除")
    @ExcelProperty(value = "是否扣除", converter = DictConvert.class)
    @DictFormat("base_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isDeduct;

    @Schema(description = "回收核验扣除项列表")
    private List<ReclaimCheckDeductItemRespVO> checkDeductItems;

}